package lottery;
import java.util.Scanner;
import java.lang.Math;
public class Main {
    public static void main(String[] args) {
        Scanner reader=new Scanner(System.in);
        int n=reader.nextInt();
        if(n>20||n<1){
            System.out.println("invalid input");
        }
        int[] num=new int[3];
        for(int i=0;i<3;i++){
            num[i]=(int)(Math.random( ) * 20 + 1);
            for(int j=0;j<i;j++){
                while(num[i]==num[j]){
                    num[i]=(int)(Math.random( ) * 20 + 1);
                }
            }
        }
        InsertionSort.insertionSort(num);
        if(n<=num[0]){
            System.out.println("一等奖");
        }else if(n<=num[1]){
            System.out.println("二等奖");
        }else{
            System.out.println("三等奖");
        }
    }
}
